<?php 
error_reporting(E_ALL);
// What copy() can do but move_uploaded_file() can't 
$src = 'http://localhost/nb118d-php830/try/img/loader.gif';
$src = 'http://www.planet-source-code.com/vb/2010Redesign/images/LangugeHomePages/PHP.png';

$dest = 'uploads/image.gif';
$ans = copy($src, $dest);
var_dump($ans);
$ans = move_uploaded_file($src, $dest);
var_dump($ans);